<!--src/main/resources/templates/login.html-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>用户登录</title>
  <link rel="stylesheet" type="text/css" th:href="@{/css/loginstyle.css}">
</head>
<body>
<form th:action="@{/login}" method="post" onsubmit="return validateForm()">
  <h2>用户登录</h2>
  <label for="username">用户名:</label>
  <input type="text" id="username" name="username" required>
  <br>
  <label for="password">密码:</label>
  <input type="password" id="password" name="password" required>
  <br>
  <button type="submit">登录</button>
</form>
</body>
</html>
